<div class="container-fluid">
    <div id="hooks-div">
        <p id="toggle_hook_info" class="text-primary" style="cursor: pointer;">Hooks <i
                class="glyphicon glyphicon-resize-small"></i></p>
        <div class="well" id="hook-info-div">
            <div id="hook_info">
                <div class="row">
                    <div id=" inputhook" class="col-sm-8">
                        <input id="classname" class="form-control" placeholder="classname">
                        <input id="method" class="form-control" placeholder="method">
                        <input id="overload_type" class="form-control"
                               placeholder="overload type e.g. 'java.lang.String', 'java.lang.String' : leave blank to hook all overloads">
                        <input id="dyload_path" class="form-control"
                               placeholder="Dex/Jar Path: for dynamically loaded classes; leave blank for default classloader">
                        <button id="add_hook" class="btn btn-info">Add</button>
                        <button id="hook_clear" class="btn">Clear</button>
                    </div>
                </div>
                <br/>
                <div class="row">
                    <div class="col-sm-4">
                        <p class="text-primary"> Current Hooks </p>
                        <div id="editor">{"classname":"","method":""}
                        </div>
                        <!-- <button id="save_hook" class="btn btn-info ">Save</button> -->
                        <button id="gen_script" class="btn btn-success ">Generate Script (Verbose)</button>
                        <!-- Button trigger modal -->
                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#hooks_history"
                                onclick="get_hooks_history();">
                            History Scripts
                        </button>
                        <button id="gen_script_mini" class="btn btn-success ">Mini Script</button>
                        <!-- Modal -->
                        <div class="modal fade" id="hooks_history" tabindex="-1" role="dialog"
                             aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h5 class="modal-title" id="exampleModalLongTitle"><code>./cache/hook</code>
                                        </h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                            <span aria-hidden="true">&times;</span>
                                        </button>
                                    </div>
                                    <div class="modal-body " id="hooks_history_output">
                                        <div class="row">
                                            <div class="col-md-4 pre-scrollable" id="dir_hooks_lst">
                                            </div>
                                            <div id="editor_hook_history" class="col-md-8 ml-auto"></div>
                                        </div>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-primary" data-dismiss="modal"
                                                onclick="load_hook_history_script();">Load this
                                        </button>
                                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-8">
                        <p class="text-primary">Current Script </p>
                        <div id="editor2"></div>
                        <button id="load_script" class="btn btn-success">Load Script</button>
                        <button id="hooks_detach" class="btn btn-warning" onclick="unload_script();">Detach</button>
                        <button type="button" class="btn btn-primary" data-toggle="modal"
                                data-target="#save_hook_script">
                            Save Script
                        </button>
                        <!-- Modal -->
                        <div class="modal fade" id="save_hook_script" tabindex="-1" role="dialog"
                             aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-centered" role="document">
                                <div class="modal-content">
                                    <div class="modal-body ">
                                        <div class="container-fluid">
                                            <p class="text-primary">Save As: </p>
                                            <br/>
                                            <input id="save_hookscript_name" class="form-control"
                                                   placeholder="classname" value="hook_tmp">
                                            <br/>
                                            <button class="btn btn-success" type="button" id="save_hook_script_button">
                                                Save
                                            </button>
                                            <button type="button" class="btn btn-secondary" data-dismiss="modal"
                                                    id="close_save_hook_script">Close
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br/>
                </div>
            </div>
        </div>
        <div class="pre-scrollable" style="min-height: 790px;">
            <p class="text-primary"> Output Console <i class="glyphicon glyphicon-remove clickable"
                                                       onclick="clear_hookMessage()"></i></p>
            <table class="table table-striped table-bordered" id="outputTbl">
                <thead>
                <tr>
                    <th style="width: 20%">MethodName</th>
                    <th style="width: 60%">Args Dump</th>
                    <th style="width: 20%">Return Value</th>
                </tr>
                </thead>
                <tbody id="outputBody"></tbody>
            </table>
        </div>
    </div>